<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>WLog: Common.h源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- 制作者 Doxygen 1.5.8 -->
<script type="text/javascript">
<!--
function changeDisplayState (e){
  var num=this.id.replace(/[^[0-9]/g,'');
  var button=this.firstChild;
  var sectionDiv=document.getElementById('dynsection'+num);
  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
    sectionDiv.style.display='block';
    button.src='open.gif';
  }else{
    sectionDiv.style.display='none';
    button.src='closed.gif';
  }
}
function initDynSections(){
  var divs=document.getElementsByTagName('div');
  var sectionCounter=1;
  for(var i=0;i<divs.length-1;i++){
    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
      var header=divs[i];
      var section=divs[i+1];
      var button=header.firstChild;
      if (button!='IMG'){
        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
        button=document.createElement('img');
        divs[i].insertBefore(button,divs[i].firstChild);
      }
      header.style.cursor='pointer';
      header.onclick=changeDisplayState;
      header.id='dynheader'+sectionCounter;
      button.src='closed.gif';
      section.id='dynsection'+sectionCounter;
      section.style.display='none';
      section.style.marginLeft='14px';
      sectionCounter++;
    }
  }
}
window.onload = initDynSections;
-->
</script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>名字空间</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<h1>Common.h</h1><a href="Common_8h.html">浏览该文件的文档。</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef _WLOG_COMMON_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define _WLOG_COMMON_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;string&gt;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="keyword">using</span> std::string;
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="keyword">namespace </span>WLog
<a name="l00009"></a>00009 {
<a name="l00010"></a>00010     <span class="keywordtype">string</span> <a class="code" href="namespaceWLog.html#f770b4e0f4b2b7ca048441d67a717c24">stringFormat</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* szFormat, ...);
<a name="l00011"></a>00011     <span class="keywordtype">string</span> <a class="code" href="namespaceWLog.html#c39b3d60384769edcbbb814afb1818ce">vstringFormat</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* szFormat, va_list ap);
<a name="l00012"></a>00012     <span class="keywordtype">string</span> <a class="code" href="namespaceWLog.html#e03867cb6729e5290f99dd0198c665ab">l2str</a>(<span class="keywordtype">long</span> lValue);
<a name="l00013"></a>00013     <span class="keywordtype">string</span> <a class="code" href="namespaceWLog.html#1c4f5dd9ea3aeb7f92f7e540197a00b8">getTimeStr</a>(time_t time, <span class="keyword">const</span> <span class="keywordtype">char</span>* szFormat = <span class="stringliteral">"%Y-%m-%d %X"</span>);
<a name="l00014"></a>00014     time_t <a class="code" href="namespaceWLog.html#bde42e02b00d5bd21cba645298573f19">now_time_t</a>();
<a name="l00015"></a>00015 }
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="preprocessor">#endif //_WLOG_COMMON_H</span>
</pre></div></div>
<hr>
<address style="align: right;">
  Generated on Mon Apr 6 21:08:12 2009 for WLog by 韦体东<img src="logo.png" align="middle"/></address>
</body>
</html>
